home *** CD-ROM | disk | FTP | other *** search
/ 200 Game / 200GAME2.iso / FLASHGAME / BREAKOUT.EXE / scripts / frame_2 / PlaceObject2_24_8 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2000-08-17  |  387 b   |  22 lines

  1. onClipEvent(enterFrame){
  2.    this._x += bx_speed;
  3.    this._y += by_speed;
  4.    if(this.hitTest(_root.bar.hitter))
  5.    {
  6.       _root.score += 1;
  7.       by_speed = - by_speed;
  8.    }
  9.    if(this._x < 56 || 302 < this._x)
  10.    {
  11.       bx_speed = - bx_speed;
  12.    }
  13.    if(this._y < 29)
  14.    {
  15.       by_speed = - by_speed;
  16.    }
  17.    if(378 < this._y)
  18.    {
  19.       this.nextFrame();
  20.    }
  21. }
  22.